package AddressGoods;

import control.Goods;


public class AddressGoodsService implements IAddressGoodsService{
    IAddressGoodsDAO addressGoodsDAO;
    public AddressGoodsService(){
        addressGoodsDAO=new AddressGoodsDAO();
    }
    @Override
    public int insert(Goods goods){
        int i=addressGoodsDAO.insert(goods);
        return  i;
    }

    @Override
    public Goods findgood(String name){
        return addressGoodsDAO.findgood(name);
    }


    @Override
    public int deletegood(String name) {
        return addressGoodsDAO.deletegood(name);
    }
    @Override
    public int updategood(Goods goods) {
        return addressGoodsDAO.updategood(goods);
    }
}
